home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
286_01
/
xhline.c
< prev
Wrap
Text File
|
1989-05-23
|
384b
|
20 lines
#include <stdio.h>
#include <gds.h>
int XHLine(x,y,boundary,leftx,rightx)
int x,y,boundary,*leftx,*rightx;
{
int ret;
x+=ORGX;
y+=ORGY;
if (outside(x,y)) return(-1);
ret=hlnlmt(x,y,(boundary ? 0xffff : 0),STYLE,leftx,rightx);
if (!ret) {
*leftx+=ORGX;
*rightx+=ORGX;
}
return(ret);
}